package com.yunkaweilai.android.activity;

import android.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.yunkaweilai.android.R;
import com.yunkaweilai.android.activity.member.AddMemberInfoActivity;
import com.yunkaweilai.android.base.BaseActivity;
import com.yunkaweilai.android.base.BaseApplication;
import com.yunkaweilai.android.fragment.MemberFragment;
import com.yunkaweilai.android.model.AppRuleModel;
import com.yunkaweilai.android.utils.TitleBuilder;

import butterknife.ButterKnife;

public class MemberActivity extends BaseActivity {
    //    private AppRuleModel.DataBean.InfoBean appRuleModel;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_member);
//        ButterKnife.bind(this);
//        appRuleModel = BaseApplication.getAppRuleModel();
//        new TitleBuilder(mAc).setTitleText("会员管理").setLeftImage(R.id.ic_img_back).setLeftOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                finish();
//            }
//        }).setRightText("新增").setRightOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                if (appRuleModel.isIs_super() || appRuleModel.getApp_rule().get("18")){
//                    intent2Activity(AddMemberInfoActivity.class);
//                }
//            }
//        });
        android.support.v4.app.FragmentManager fragmentManager = getSupportFragmentManager();
        MemberFragment memberFragment = new MemberFragment();
        fragmentManager.beginTransaction().add(R.id.fragment_container, memberFragment).commitAllowingStateLoss();
    }
}
